package ejb.contentManagement;

import java.util.List;

import ejb.dto.PeriodDTO;

public interface PeriodMgr {

	/**
	 * Return PeriodDTO of Period identified by <code>id</code>
	 * @param id
	 * @return PeriodDTO
	 */
	PeriodDTO getPeriodDTO(int id);

	/**
	 * Return all PeriodDTO
	 * @return all PeriodDTO
	 */
	List<PeriodDTO> getAllPeriodsDTO();

	/**
	 * Delete Period identified by <code>id</code> from database
	 * @param id
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean deletePeriod(int id);

	/**
	 * Update Period identified by <code>updatedPeriod</code> in database
	 * @param updatedPeriod
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean updatePeriod(PeriodDTO updatedPeriod);

	/**
	 * Insert Period identified by <code>newPeriod</code> in database
	 * @param newPeriod
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean insertPeriod(PeriodDTO newPeriod);

}
